package com.example.common.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name = "business_order_back_log")
public class OrderBackLog implements Serializable {

	private static final long serialVersionUID = 4749654785951543489L;
	@Id
	@Column(name = "id_bigint", columnDefinition = "bigint(20)")
	private Long id;
	@Column(name = "order_no_nvarchar", columnDefinition = "varchar(255) comment '订单号'")
	private String orderNo;
	@Column(name = "order_back_time_datetime", columnDefinition = "datetime(3)")
	private Date orderBackTime;
	@Column(name = "recorder_nvarchar", columnDefinition = "varchar(255)")
	private String recorder;
	@Column(name = "order_back_type_int", columnDefinition = "int(11) comment '0初始状态,1退款审核中,2退款已受理，流程退款成功（运营审核完成，待财务打款）,3退款失败,4财务确认退款,-1取消订单退款'")
	private Integer orderBackType;
	@Column(name = "order_back_remark_nvarchar", columnDefinition = "varchar(255)")
	private String orderBackRemark;
	@Column(name = "order_back_no_nvarchar", columnDefinition = "varchar(255)")
	private String orderBackNo;
}
